const http = uni.$u.http

//修改用户信息
export const updateUser = ( data ) => {
	return http.post('/index.php?_mall_id=1&r=api/user/update-userinfo', data )
}

//人：关注
export const followUser = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/car-follow/follow', {params:data})
}

//人：取消关注
export const cancelUser = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/car-follow/cancle-follow', {params:data})
}

//回答：关注问题
export const followQuestions = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/circle/follow-questions', {params:data})
}

//回答：取消关注问题
export const cancelQuestions = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/circle/cancle-follow-q', {params:data})
}


//获取关注列表
export const fansList = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/car-follow/follow-list', {params:data})
}

//发圈子 && 发问答
export const circlePub = ( data ) => {
	return http.post('/index.php?_mall_id=1&r=api/circle/publish', data )
}

//热门话题
export const circleTalk = ( data ) => {
	return http.post('/index.php?_mall_id=1&r=api/circle/talk-list', data )
}

//获取圈子列表
export const circle = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/circle/circle-list', {params:data})
}

//圈子详情
export const circleDetail = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/circle/circle-detail', {params:data})
}

//圈子评论
export const comment = ( data ) => {
	return http.post('/index.php?_mall_id=1&r=api/circle/comment', data )
}

//小点赞
export const support = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/circle/comment-support', {params:data})
}

//大点赞
export const circleSupport = (data) => {
	return http.get('/index.php?_mall_id=1&r=api/circle/support', {params:data})
}

